
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
//int main()
//{
//	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
//	printf("%d \n", &arr[9] - &arr[0]);
//	printf("%d \n", &arr[0] - &arr[9]);
//	return 0;
//}


size_t my_strlen(char* p)
{
	size_t count = 0;
	while (*p != '\0')
	{
		count++;
		p++;
	}
	return count;
}
int main()
{
	char a[] = "abcdef";
	size_t len = my_strlen(a);
	printf("%zd\n", len);
	return 0;
}